<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:body>
        <ui:composition template="/WEB-INF/jsf2/templates/templateBasic.xhtml">
            <ui:define name="top">
                <ui:include src="/WEB-INF/jsf2/templates/templateNavigation.xhtml"/>
            </ui:define>
            <ui:define name="bottom">
                <ui:include src="/WEB-INF/jsf2/templates/templateBottom.xhtml"/>
            </ui:define>

            <ui:define name="content">
                <f:loadBundle basename="com.gq2.multilang.prognostic" var="txt_pro"/>
                <f:loadBundle basename="com.gq2.multilang.granq" var="txt_com"/>
                <h3 align="center">#{txt_pro.generatePrognostics}</h3>
                <h:form id="genPrognostic_form">
                    <table>

                        <tr>
                            <td>
                                <h:outputLabel for="componentLabel3" id="componentLabel3">
                                    <h:outputText id="componentLabel3Text" value="#{txt_com.Championship}"/>
                                </h:outputLabel>
                            </td>
                            <td colspan="2">
                                <h:selectOneMenu id="dropdown1" onchange="submit()" value="#{genPrognostic.chaId}" valueChangeListener="#{genPrognostic.championshipChangeEvent}">
                                    <f:selectItems id="dropdown1SelectItems" value="#{genPrognostic.championshipItemList}"/>
                                </h:selectOneMenu>
                            </td>

                            <td colspan="2">
                                <h:selectOneRadio id="mode" value="#{genPrognostic.generateMode}" >
                                    <f:selectItem id="mode_0" itemValue="0" itemLabel="#{txt_com.generateOneRound}"/>
                                    <f:selectItem id="mode_1" itemValue="1" itemLabel="#{txt_com.generateFromRound}"/>
                                    <f:selectItem id="mode_2" itemValue="2" itemLabel="#{txt_com.generateAllRounds}"/>
                                    <f:selectItem id="mode_3" itemValue="3" itemLabel="#{txt_com.generateFromChampionship}"/>
                                </h:selectOneRadio>
                            </td>
                        </tr>

                        <tr>
                            <td>txt_com.Round</td>
                            <td>
                                <h:selectOneMenu  id="ronda2"  onchange="submit()" value="#{genPrognostic.round}" valueChangeListener="#{genPrognostic.roundChangeEvent}">
                                    <f:selectItems id="dropdown2SelectItems" value="#{genPrognostic.roundItemList}"/>
                                </h:selectOneMenu>

                            </td>
                        </tr>


                        <tr>
                            <td colspan="3">&nbsp;</td>
                            <td align="center">
                                <h:commandButton action="Home" id="cancelar" value="#{txt_com.Cancel}"/>
                            </td>
                            <td align="center">
                                <h:commandButton action="#{genPrognostic.generateProcess}" id="generateClasif" value="#{txt_com.generate}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td colspan="4">&nbsp;</td>
                        </tr>

                    </table>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>

</html>
